<?php
require_once ROOT_LIBRARY_EXCEPTION.DS.'invalid_arguments_exception.php';
require_once ROOT_LIBRARY_EXCEPTION.DS.'internal_error_exception.php';
require_once(ROOT_LIBRARY_UTILITY.DS.'utility.php');

class BaseController extends Zend_Controller_Action
{
	public function init()
	{
		//config 
		 $layoutPath = APPLICATION_PATH  . '/templates/default';
      $option = array ('layout' => 'index', 
                   'layoutPath' => $layoutPath );
      Zend_Layout::startMvc ( $option );  
		//get controller,action name
		$request = $this->getRequest();
		$this->view->baseUrl 		= $request->getBaseUrl();
		$this->view->controllerNameDefault	= $request->getControllerName();
		$this->view->actionNameDefault		= $request->getActionName();				
		$this->view->arrParam = $this->_request->getParams();		
	}	
}